package com.junhong.action;

import javax.annotation.Resource;

import com.junhong.entity.Teacher;
import com.junhong.service.TeacherService;

public class TeacherUpdateAction {
	private Integer id;// 工号
	private String name;// 姓名
	private String phone;// 电话
	private String post;// 职位
	private String sex;// 性别
	private String mail;// 邮箱

	@Resource
	private TeacherService teacherService;
	public void update() {
		Teacher teacher = new Teacher(id,name,phone,post,sex,mail);
		teacherService.update(teacher);
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

}
